{% extends "ejeje/layout.html" %}


{%block title%}Nytt om ejeje{%endblock%}

{%block head%}
{%endblock%}

{%block body%}

<div class="container">
{% if object %}
<h1>{{object.tittel}}</h1>
<ul>
  <li><i class=icon-time></i> {{object.publisert}}</li>
  <li><i class=icon-globe></i> <a href="/nyheter/{{object.id}}-{{object.slug}}">#{{object.slug}}</a></li>
</ul>
<p>{{object.tekst}}</p>
<p><a href="/nyheter">Flere nyheter</a></p>
{% else %}
<h1 title="">Nyheter</h1>
<div id="content">
{% for object in list %}
  <div class="media">
    <div class="media-body">
        <h4 class="media-heading">{{object.tittel}}</h4>
        <ul>
          <li><i class="icon-time"></i> {{object.publisert}}</li>
          <li><i class="icon-globe"></i> <a href="/nyheter/{{object.id}}-{{object.slug}}">#{{object.slug}}</a></li>
        </ul>
        <p>{{object.tekst}}</p>
    </div>
  </div>

{% endfor %}
</div>

{% endif %}
</div>

{%endblock body%}



